package src;

public class Students {
    private String id;//id
    private String name;//姓名
    private int age;//年龄
    private String address;//家庭地址

    public Students() {
    }

    public Students(String id, String name, int age, String address) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.address = address;
    }

    /**
     * 获取
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    public String toString() {
        return "Students{id = " + id + ", name = " + name + ", age = " + age + ", address = " + address + "}";
    }
}



//    Students s1 = new Students(1,"李桑",19,"陕西");
//    Students s2 = new Students(1,"王桑",29,"上海");
//    Students s3 = new Students(1,"代桑",18,"四川");
//    Students s4 = new Students(1,"大桑",17,"北京");
//    Students s5 = new Students(1,"小桑",26,"玉兰");
